package com.youdianda.mapper;

import com.youdianda.entity.YddArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;

/**
* @author xliu
* @description 针对表【ydd_article】的数据库操作Mapper
* @createDate 2023-05-14 16:01:34
* @Entity com.youdianda.entity.YddArticle
*/
public interface YddArticleMapper extends BaseMapper<YddArticle> {

    @Insert("insert into ydd_article (title,author,cateid,tags,pic,content,status,user_id,create_date,update_date,keywords,description)" +
            "values (#{title},#{author},#{cateid},#{tags},#{pic},#{content},#{status},#{user_id},#{create_date},#{update_date},#{keywords},#{description})")
    void addArticle(YddArticle addYddArticle);
}




